package com.jy.common;

import org.apache.commons.lang3.StringUtils;

public class StringUtil {

    public static boolean isNullOrEmpty(String str) {
        return str == null || str.length() == 0;
    }
    /**
     * isEmpty
     */
    public static boolean isEmpty(String str) {
        return str == null || str.length() == 0;
    }
    /**
     * padRight
     */
    public static String padRight(String str, int size, char padChar) {
        return StringUtils.rightPad(str, size, padChar);
    }

    public static boolean isNullOrWhiteSpace(String str) {
        return StringUtils.isBlank(str);
    }
}
